﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CommonsLib.ORM
{
    [Serializable]
    public class DataTableAttribute : Attribute
    {
        /// <summary>
        /// 对应的数据库
        /// </summary>
        public string DBName
        {
            get;
            set;
        }
         
        /// <summary>
        /// 对应的数据库表
        /// </summary>
        public string TableName
        {
            get;
            set;
        }

        /// <summary>
        /// 本对象对于的数据库Key
        /// </summary>
        public string Key
        {
            get;set;
        }

        /// <summary>
        /// 本记录对应的ForeignKey
        /// </summary>
        public string ForeignKey
        {
            get;
            set;
        }
    }
}
